package br.ufpe.cin.wormbox.core;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;

public class Usuario {
	
	private String login;
	private ServicosGerenciamentoArquivo servicosGerenciamento;
	private File fileFolder;
	
	public Usuario(String login, long ultimaSincronizacao) {
		this.login = login;
		this.fileFolder = new File("wormbox/userfiles/"+login);
		if(!fileFolder.exists()) {
			fileFolder.mkdirs();
		}
		this.servicosGerenciamento = new ServicosGerenciamentoArquivo();
	}

	public File getFileFolder() {
		return this.fileFolder;
	}
	
	public ServicosGerenciamentoArquivo servicos() {
		return this.servicosGerenciamento;
	}
	
	/*public void initFolder() {
		if(!this.rootFolder.exists()) {
			this.rootFolder.mkdirs();
		}
	}*/
}
